<?php global $options; foreach ($options as $value) {if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }}?>
<?php get_header(); ?>


<div class="main_big_cat_top_3">
</div>

<div class="main_cats_blog" id="archivelist">
<div class="gallery_bg">

			 <?php while (have_posts()) : the_post(); if (current_user_can('level_2')) {} else {if (in_category('private')) continue;}
			if ($images = get_children(array(
				'post_parent' => $post->ID,
				'numberposts' => '1',
				'post_type' => 'attachment',
				'post_mime_type' => 'image',
				'order' => 'ASC',
				'orderby' => 'menu_order')))  
			 foreach($images as $image) {  
				$exehill_image = $image->guid; 
				$exehill_thumb = wp_get_attachment_thumb_url( $image->ID);			
				} else {
				$exehill_image = site_url('/wp-content/themes/exehill2/images/portfolio_noimage.png');
				$exehill_thumb = site_url('/wp-content/themes/exehill2/images/portfolio_noimage.png');
				}				
			    ?>

	
	
	<div class="portfolio_item">
			
		<div class="portfolio_item_core" style="background:url(<?php echo $exehill_image; ?>) no-repeat; ">
		
		
			<div class="MooTrans">
				
				<div class="portfolio_itemlink"><a href="<?php the_permalink(); ?>" onmouseover="Tip('<strong><?php the_title(); ?></strong></br>Posted by <?php the_author(); ?> on <?php the_time('M j, Y') ?> with <?php comments_number('0 responses', '1 response', '% responses' );?>')" onmouseout="UnTip()" ></a>
				</div>
				
				
			</div>
		
		</div>
		
		<div class="portfolio_item_footer">

			<span class="portfolio_item_footer_right"><a  href="<?php the_permalink(); ?>" ><?php the_title(); ?></a></span> <span class="portfolio_item_footer_left"><a href="<?php the_permalink(); ?>"></a></span>
			

			
		</div>
	
	
	</div>
	
<?php endwhile; ?>			
	<div class="clear">
	</div>
	
</div></div>
</div>	
	<div class="main_left_bottom_3"><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
	</div>
<?php get_footer(); ?>
